﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MMapSimple.aspx.cs" Inherits="WebUI.Demo.Templates.MMapSimple" %>
<% Response.ContentType = "text/plain; charset=utf-8"; %>{
    "name": "全站首页", 
    "percentage": 0.9, 
    "value": 256,
    "children": [
    <x:RepeaterExt ID="CmsMenu1" Data="Node" Index="0" Level="Lower" GetHrefx="false" runat="server">
    <ItemTemplate>{
        "name": "<%# Eval("NodeTitle") %>", 
        "percentage": 0.0<%# Eval("NodePkId") %>, 
        "value": 128,
        "layer": <%# Eval("NodeLayer") %>,
        "children": [
        <x:RepeaterExt ID="CmsMenu1" Data="Node" FieldParentKeys="NodePkId" Level="Lower" GetHrefx="false" runat="server">
        <ItemTemplate>{
            "name": "<%# Eval("NodeTitle") %>", 
            "percentage": 0.0<%# Eval("NodePkId") %>, 
            "value": 64,
            "layer": <%# Eval("NodeLayer") %>,
            "children": [
            <x:RepeaterExt ID="CmsMenu1" Data="Node" FieldParentKeys="NodePkId" Level="Lower" GetHrefx="false" runat="server">
            <ItemTemplate>{
                "name": "<%# Eval("NodeTitle") %>", 
                "percentage": 0.0<%# Eval("NodePkId") %>, 
                "layer": <%# Eval("NodeLayer") %>,
                "value": 32
            }<%# Convert.ToBoolean(Eval("IsLast")) ? "" : "," %>
            </ItemTemplate>
            </x:RepeaterExt>]
        }<%# Convert.ToBoolean(Eval("IsLast")) ? "" : "," %>
        </ItemTemplate>
        </x:RepeaterExt>]
    }<%# Convert.ToBoolean(Eval("IsLast")) ? "" : "," %>
</ItemTemplate>
</x:RepeaterExt>]
}